<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>

    [#include "/admin/include/admin_static.htm"]
    [#import "/admin/include/admin_pagination.ftl" as p/]
    <script type="text/javascript">
        $(function() {


            $("#export").click(  function() {
                $("#searchForm").attr("action","${path}/admin/bank/exportList.aspx").submit();
            });
        });

    </script>
</head>
<body>
<div class="main_admin_content">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>银行卡信息</legend>
    </fieldset>

    <form id="searchForm" method="post" action="${path}/admin/bank/list.aspx">
        <table class="search_table_div">
            <tr>
                <td class="column">用户ID：</td>
                <td><input type="text" onkeyup="value=value.replace(/[^\d]/g,'')" name="userId" value="${userId }"/>
                </td>
                <td class="column">用户名：</td>
                <td><input type="text" name="userName" value="${userName }"/></td>
            </tr>
            <tr>
                <th colspan="100" class="btn_td">
                    <button id="export" class="layui-btn layui-btn-small" style="float:left;width: 100px; heigth: 30px; line-height: 30px" >导出</button>
                    <input name="submit" type="submit"  class="layui-btn" value="查询"/>
                    <input onclick="resent();" type="button"  class="layui-btn" value="清空"/>
                </th>
            </tr>
        </table>
    </form>

    <table class="layui-table">
        <colgroup>
            <col width="50">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">

        </colgroup>
       <thead>
        <tr>
            <th>用户ID</th>
            <th>用户名称</th>
            <th>真实姓名</th>
            <th>开户银行</th>
            <th>开户支行</th>
            <th>银行卡号</th>
            <th>状态</th>
        </tr>
       </thead>
    [#list bankCards as bankCard]
        <tr>
            <td>${bankCard.user_id}</td>
            <td>
            ${bankCard.userName}
            </td>
            <td>${bankCard.realName}</td>
            <td>${bankCard.bank}</td>
            <td>${bankCard.branch}</td>
            <td>${bankCard.bank_cardno}</td>
            <td>
                [#if bankCard.status==0]
                    绑定中
                [#else]
                    已绑定
                [/#if]

            </td>
        </tr>
    [/#list]
    </table>
[@p.pager pager = page parameterMap={"userId":"${userId }","userName":"${userName }"} url = "${path}/admin/bank/list.aspx"/]
</div>
</body>
</html>